linux操作系统 go version命令手册

go version

Print Go version. More information: https://golang.org/cmd/go/#hdr-Print_Go_version.

  • Print Go version:

go version

  • Print the Go version used to build the named executable file:

go version {{path/to/executable}}